import request from "@/utils/request";

//获取验证码
export function mainSend(data) {
	return request({
		url: '/jy/sendCode',
		headers: {
			isToken: false
		},
		method: 'get',
		data
	})
}


//验证码登录
export function povertyLogin(data) {
	return request({
		url: '/phoneLogin',
		headers: {
			isToken: false
		},
		method: 'post',
		data
	})
}
//注册 求职者
export function jyUserRegister(data) {
	return request({
		url: '/jy/jyUserRegister',
		headers: {
			isToken: false
		},
		method: 'post',
		data
	})
}
//注册 企业
export function jyEnterpriseRegister(data) {
	return request({
		url: '/jy/jyEnterpriseRegister',
		headers: {
			isToken: false
		},
		method: 'post',
		data
	})
}





// 查询字典数据详细
export function getData(dictCode) {
	return request({
		  url: '/system/dict/data/type/' + dictCode,
		method: 'get',
	})
}
// 查询地区
export function getdept(dictCode) {
	return request({
		  url: '/jy/deptList',
		method: 'get',
	})
}




//获取用户信息
export function getInfo(data) {
	return request({
		url: '/getInfo',
		headers: {
			isToken: true
		},
		method: 'get',
		data
	})
}

//获取个人资料
export function getuserInfo(query) {
	return request({
		url: '/warehouse/jyuser/' + query,
		method: 'get',
	})
}
//获取个人资料
export function getuserInfo3(query) {
	return request({
		url: '/system/user/' + query,
		method: 'get',
	})
}
export function getuserInfo2(query) {
	return request({
		url: '/warehouse/enterprise/' + query,
		method: 'get',
	})
}

//修改个人资料
export function putjyuser(data) {
	return request({
		url: '/warehouse/jyuser',
		headers: {
			isToken: true
		},
		method: 'put',
		data
	})
}
//修改企业
export function enterprise(data) {
	return request({
		url: '/warehouse/enterprise',
		headers: {
			isToken: true
		},
		method: 'put',
		data
	})
}

export function editLogo(data) {
	return request({
		url: '/warehouse/enterprise/editLogo',
		headers: {
			isToken: true
		},
		method: 'put',
		data
	})
}
export  function jobRecruitment(query) {
	return request({
		url: '/warehouse/jobRecruitment/list',
		method: 'get',
		params: query
	})
}
//网格员待办企业列表
export function recruitmentTrack(query) {
	return request({
		url: '/warehouse/recruitmentTrack/list',
		method: 'get',
		params: query
	})
}
//网格员待求职者业列表
export function trackDetail(query) {
	return request({
		url: '/warehouse/trackDetail/listss',
		method: 'get',
		params: query
	})
}
//岗位收藏 post
export function jobCollect(data) {
	return request({
		url: '/warehouse/jobCollect',
		method: 'post',
		data: data
	})
}


//查询收藏
export function getjobCollect(query) {
	return request({
		url: '/warehouse/jobCollect/list',
		method: 'get',
		params: query
	})
}
//删除收藏
export function deletejobCollect(data) {
	return request({
		url: '/warehouse/jobCollect/cancelCollect',
		method: 'delete',
		params: data
	})
}
//查询行业列表
export function getjobType(query) {
	return request({
		url: '/warehouse/jobType/listAll',
		method: 'get',
		params: query
	})
}



export function upload(data) {
	return request({
		url: '/jy/upload',
		headers: {
			isToken: true
		},
		method: 'post',
		data
	})
}

//企业待办详情
export function getInfoNew(query) {
	return request({
		url: '/warehouse/recruitmentTrack/getInfoNew/' + query,
		method: 'get',
	})
}

//2.网格员->新增招聘岗位跟踪
export function recruitmentTrackDetail(data) {
	return request({
		url: '/warehouse/recruitmentTrackDetail',
		method: 'post',
		data: data
	})
}
//认证提交
export function puttrackDetail(data) {
	return request({
		url: '/warehouse/trackDetail',
		headers: {
			isToken: true
		},
		method: 'put',
		data
	})
}

//查询历史待办
export function getoldlist(query) {
	return request({
		url: '/warehouse/track/list',
		method: 'get',
		params: query
	})
}

//查询历史待办
export function getoldlist2(query) {
	return request({
		url: '/warehouse/recruitmentPush/list',
		method: 'get',
		params: query
	})
}


//查询历史待办
export function recruitmentTrack2(query) {
	return request({
		url: '/warehouse/recruitmentTrack/list',
		method: 'get',
		params: query
	})
}
//查询历史待办
export function trackDetail2(query) {
	return request({
		url: '/warehouse/trackDetail/lists',
		method: 'get',
		params: query
	})
}

//2.新增岗位   
export function postjobRecruitment(data) {
	return request({
		url: '/warehouse/jobRecruitment',
		method: 'post',
		data: data
	})
}

//企业详情
export function getjobRecruitment(query) {
	return request({
		url: '/warehouse/jobRecruitment/' + query,
		method: 'get',
	})
}

//岗位修
export function putjobRecruitment(data) {
	return request({
		url: '/warehouse/jobRecruitment',
		headers: {
			isToken: true
		},
		method: 'put',
		data
	})
}












//获取验证码
export function mainSend(data) {
	return request({
		url: '/openMain/send',
		headers: {
			isToken: false
		},
		method: 'get',
		data
	})
}
//验证码登录
export function povertyLogin(data) {
	return request({
		url: '/openMain/povertyLogin',
		headers: {
			isToken: false
		},
		method: 'post',
		data
	})
}


//获取用户信息
export function getInfo(data) {
	return request({
		url: '/poverty-api/account/getInfo',
		headers: {
			isToken: true
		},
		method: 'get',
		data
	})
}
//修改用户
export function updateAccount(data) {
	return request({
		url: '/poverty-api/account/updateAccount',
		headers: {
			isToken: true
		},
		method: 'post',
		data
	})
}
//修改手机号
export function updatePhone(data) {
	return request({
		url: '/poverty-api/account/updatePhone',
		headers: {
			isToken: true
		},
		method: 'post',
		data
	})
}
//特困认证工单
export function povertyAuthList(query) {
	return request({
		url: '/poverty-api/main/povertyAuthList',
		method: 'get',
		params: query
	})
}
//监护人监管拍照历史列表
export function supportInfoList(query) {
	return request({
		url: '/poverty-api/main/supportInfoList',
		method: 'get',
		params: query
	})
}
//监护人低保人员监管
export function allowancesInfoList(query) {
	return request({
		url: '/poverty-api/main/allowancesInfoList',
		method: 'get',
		params: query
	})
}
//身份证查询特困人员
export function povertyInfo(query) {
	return request({
		url: '/poverty-api/main/povertyInfo',
		method: 'get',
		params: query
	})
}
//绑定老人
export function bindingOld(query) {
	return request({
		url: '/poverty-api/main/bindingOld',
		method: 'post',
		params: query
	})
}
//绑定老人列表
export function bindingOldList(query) {
	return request({
		url: '/poverty-api/main/bindingOldList',
		method: 'get',
		params: query
	})
}

//监管照料提交
export function supportInfoAdd(data) {
	return request({
		url: '/poverty-api/main/supportInfoAdd',
		headers: {
			isToken: true
		},
		method: 'post',
		data
	})
}
//低保人员
export function allowancesInfoAdd(data) {
	return request({
		url: '/poverty-api/main/allowancesInfoAdd',
		headers: {
			isToken: true
		},
		method: 'post',
		data
	})
}
//认证提交
export function povertyAuthentication(data) {
	return request({
		url: '/poverty-api/main/povertyAuthentication',
		headers: {
			isToken: true
		},
		method: 'put',
		data
	})
}


//工单详情
export function povertyAuthById(query) {
	return request({
		url: '/poverty-api/main/povertyAuthById',
		method: 'get',
		params: query
	})
}

//招工列表
export function jobRecruitmentlist(query) {
	return request({
		url: '/warehouse/jobRecruitment/list',
		method: 'get',
		params: query
	})
}
//企业详情
export function enterprise(query) {
	return request({
		url: '/warehouse/enterprise/'+query,
		method: 'get',
	})
}



//照料详情
export function supportInfoById(query) {
	return request({
		url: '/poverty-api/main/supportInfoById',
		method: 'get',
		params: query
	})
}



